long division with remainders